package com.guigui.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigui.common.utils.PageUtils;
import com.guigui.gulimall.product.dto.AttrRelationAddDto;
import com.guigui.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.guigui.gulimall.product.vo.AttrRelationVo;

import java.util.List;
import java.util.Map;

/**
 * 属性&属性分组关联
 *
 * @author xin
 * @email 806748502@qq.com
 * @date 2021-07-23 14:10:33
 */
public interface AttrAttrgroupRelationService extends IService<AttrAttrgroupRelationEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 删除关联关系
     * @param attrRelationVos
     */
    void deleteAttrBatch(List<AttrRelationVo> attrRelationVos);

    /**
     * 批量保存属性关联表中的数据
     * @param attrRelationAddDtos attrRelationAddDto{"attrGroupId": 0, //分组id "attrId": 0, //属性id}
     */
    void saveRelationBatch(List<AttrRelationAddDto> attrRelationAddDtos);
}

